/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author jipengfei
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.service;

import com.eyaomall.wxmall.model.po.Employee;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 门店店员Service接口
 * 
 * @author jipengfei
 *
 */
public interface EmployeeService {

	/**
	 * 查询店员分页信息
	 */
	Pages<?> page(Employee employee, PageHTTPObject httpObject);

	/**
	 * 通过ID删除店员
	 */
	boolean deleteById(Employee employee);

	/**
	 * 查找门店店长
	 */
	Employee queryByJobName(Employee employee);

	/**
	 * 修改店长
	 * @param employee
	 * @return
	 */
	boolean updateByJobName(Employee employee);

	/**
	 * 修改店员信息
	 * @param employee
	 * @return
	 */
	boolean update(Employee employee);

	/**
	 * 新增店员
	 * @param employee
	 * @return
	 */
	int create(Employee employee);
	
	/**
	 * 通过ID查询店员
	 */
	Employee queryById(Integer id);
	
	/**
	 * 通过ID查询店员
	 */
	public Employee queryByPhone(String phone);
	
	/**
	 * 登录校验
	 * @param phone
	 * @param passwd
	 * @return
	 */
	public Employee login(String phone,String passwd);
}
